package sys.model;

import java.util.Date;

public class Mail {
    private Integer id;  //id

    private String sender;   //发送者

    private String receiver;  //接受者

    private String context;   //内容

    private String title;     //题目

    private Date ctime;          //发送时间

    private Integer userid;     // 用户id

    private Integer oppend;     // 是否打开

    private Date optiontime;     // 打开时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender == null ? null : sender.trim();
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver == null ? null : receiver.trim();
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context == null ? null : context.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getOppend() {
        return oppend;
    }

    public void setOppend(Integer oppend) {
        this.oppend = oppend;
    }

    public Date getOptiontime() {
        return optiontime;
    }

    public void setOptiontime(Date optiontime) {
        this.optiontime = optiontime;
    }
}